home *** CD-ROM | disk | FTP | other *** search
/ PC go! 2008 April / PCgo 2008-04 (DVD).iso / interface / contents / demoversionen_3846 / 13664 / files / Data1.cab / gxrenders.idl < prev    next >
Encoding:
Text File  |  2007-05-18  |  14.7 KB  |  718 lines

  1. // GXRenders.idl : IDL source for GXMPS.dll
  2. //
  3.  
  4. // This file will be processed by the MIDL tool to
  5. // produce the type library (GXMPS.tlb) and marshalling code.
  6.  
  7. import "imsigx.idl";
  8. import "ocidl.idl";
  9.  
  10.  
  11.     /**
  12.      * An object which controls the loading and saving of objects to and from disk.
  13.      */
  14.     [
  15.          object
  16.         ,uuid(6A48114E-E531-11CF-A115-00A024158DAF)
  17.         ,oleautomation
  18.         ,dual
  19.         ,helpcontext(0x13000000)
  20.         ,helpstring("An object which controls the loading and saving of objects to and from disk.")
  21.     ]
  22.     interface RenderView : IDispatch
  23.     {
  24.         /**
  25.          * Returns an Application object that represents the owner of the specified object.
  26.          */
  27.         [
  28.              propget
  29.             ,helpcontext(0x13000001)
  30.             ,helpstring("Returns an Application object that represents the creator of the specified object.")
  31.         ]
  32.         HRESULT  Application(
  33.             [out, retval] IApplication** prop // The Application object.
  34.             );
  35.  
  36.         /**
  37.          * Returns the Drawing object that owns the object.
  38.          */
  39.         [
  40.              propget
  41.             ,helpcontext(0x13000002)
  42.             ,helpstring("Returns the Drawing object that owns the object.")
  43.         ]
  44.         HRESULT  Drawing(
  45.             [out, retval] IDrawing** prop // The Drawing object.
  46.             );
  47.  
  48.         /**
  49.          * Returns the Drawing object that owns the object.
  50.          */
  51.         [
  52.              propget
  53.             ,helpcontext(0x13000003)
  54.             ,helpstring("Returns the View object that owns the object.")
  55.         ]
  56.         HRESULT  View(
  57.             [out, retval] View** prop // The Drawing object.
  58.             );
  59.  
  60.         /**
  61.          * Returns the parent object for the specified object.
  62.          */
  63.         [
  64.              propget
  65.             ,helpcontext(0x13000004)
  66.             ,helpstring("Returns the parent object for the specified object.")
  67.         ]
  68.         HRESULT  Parent(
  69.             [out, retval] View** prop // The parent object.
  70.             );
  71.  
  72.         [
  73.              propget
  74.             ,helpcontext(0x13000005)
  75.             ,helpstring("return Render id ")
  76.         ]
  77.         HRESULT RenderID(
  78.         [out, retval] short *pVal
  79.         );
  80.         
  81.         [
  82.              propput
  83.             ,helpcontext(0x13000005)
  84.             ,helpstring("set id of the render which associated with the RenderView")
  85.         ]
  86.         HRESULT RenderID(
  87.             [in] short newVal
  88.         );
  89.  
  90.         [
  91.              propget
  92.             ,helpcontext(0x13000006)
  93.             ,helpstring("return render's default mode")
  94.         ]
  95.         HRESULT RenderMode(
  96.             [out, retval] ImsiRenderMode *pVal
  97.         );
  98.         
  99.         [
  100.              propput
  101.             ,helpcontext(0x13000006)
  102.             ,helpstring("set render's default mode")
  103.         ]
  104.         HRESULT RenderMode(
  105.             [in] ImsiRenderMode newVal
  106.         );
  107.         
  108.  
  109.         [
  110.              propget
  111.             ,helpcontext(0x13000007)
  112.             ,helpstring("return ExtendedMode of the render")
  113.         ]
  114.         HRESULT RadExtendedMode(
  115.             [out, retval] ImsiRenderMode *pVal
  116.             );
  117.         
  118.         [
  119.              propput
  120.             ,helpcontext(0x13000007)
  121.             ,helpstring("set ExtendedMode of the render")
  122.         ]
  123.         HRESULT RadExtendedMode(
  124.             [in] ImsiRenderMode newVal
  125.             );
  126.  
  127.         [
  128.              propget
  129.             ,helpcontext(0x13000008)
  130.             ,helpstring("property IterationsCount")
  131.         ]
  132.         HRESULT RadIterationsCount(
  133.             [out, retval] short *pVal
  134.             );
  135.  
  136.         [
  137.              propput
  138.             ,helpcontext(0x13000008)
  139.             ,helpstring("property IterationsCount")
  140.         ]
  141.         HRESULT RadIterationsCount(
  142.             [in] short newVal
  143.             );
  144.  
  145.         [
  146.              propget
  147.             ,helpcontext(0x13000009)
  148.             ,helpstring("return true if render is runned in this view")
  149.         ]
  150.         HRESULT IsRenderRunned(
  151.             [out, retval] BOOL* pVal 
  152.             );
  153.  
  154.         [
  155.              propget
  156.             ,helpcontext(0x1300000A)
  157.             ,helpstring("return picture of the renderview")
  158.         ]
  159.         HRESULT Picture(
  160.             [out, retval] IPicture** pProp
  161.             );
  162.  
  163.         [
  164.              helpcontext(0x1300000B)
  165.             ,helpstring("Start render ")
  166.         ]
  167.         HRESULT  BeginRender(
  168.             [in] short WhichRender
  169.             );
  170.  
  171.         [
  172.              helpcontext(0x1300000C)
  173.             ,helpstring("Do render ")
  174.         ]
  175.         HRESULT  DoRender(
  176.             );
  177.  
  178.         [
  179.              helpcontext(0x1300000D)
  180.             ,helpstring("end render ")
  181.         ]
  182.         HRESULT  EndRender(
  183.             );
  184.  
  185.         [
  186.              propget
  187.             ,helpcontext(0x1300000E)
  188.             ,helpstring("property MaxArea")
  189.         ]
  190.         HRESULT  RadMaxArea(
  191.             [out, retval] double *pVal
  192.             );
  193.  
  194.         [
  195.              propput
  196.             ,helpcontext(0x1300000E)
  197.             ,helpstring("property MaxArea")
  198.         ]
  199.         HRESULT  RadMaxArea(
  200.                                 [in] double newVal
  201.                                 );
  202.  
  203.         [
  204.              propget
  205.             ,helpcontext(0x1300000F)
  206.             ,helpstring("property MinArea")
  207.         ]
  208.         HRESULT  RadMinArea(
  209.             [out, retval] double *pVal
  210.             );
  211.         
  212.         [
  213.              propput
  214.             ,helpcontext(0x1300000F)
  215.             ,helpstring("property MinArea")
  216.         ]
  217.         HRESULT  RadMinArea(
  218.             [in] double newVal
  219.             );
  220.         
  221.         [
  222.              propget
  223.             ,helpcontext(0x13000010)
  224.             ,helpstring("property RadQuality")
  225.         ]
  226.         HRESULT  RadQuality(
  227.             [out, retval] short *pVal
  228.             );
  229.         
  230.         [
  231.              propput
  232.             ,helpcontext(0x13000010)
  233.             ,helpstring("property RadQuality")
  234.         ]
  235.         HRESULT  RadQuality(
  236.             [in] short newVal
  237.             );
  238.     //
  239.         [
  240.              propget
  241.             ,helpcontext(0x13000010)
  242.             ,helpstring("property ForegroundSuppressHiddenLine")
  243.         ]
  244.         HRESULT  ForegroundSuppressHiddenLine(
  245.             [out, retval] BOOL *bVal
  246.             );
  247.         
  248.         [
  249.              propput
  250.             ,helpcontext(0x13000010)
  251.             ,helpstring("property ForegroundSuppressHiddenLine")
  252.         ]
  253.         HRESULT  ForegroundSuppressHiddenLine(
  254.             [in] BOOL bVal
  255.             );
  256. //
  257.         [
  258.              propget
  259.             ,helpcontext(0x13000010)
  260.             ,helpstring("property ForegroundSuppressWireFrame2D")
  261.         ]
  262.         HRESULT  ForegroundSuppressWireFrame2D(
  263.             [out, retval] BOOL *bVal
  264.             );
  265.         
  266.         [
  267.              propput
  268.             ,helpcontext(0x13000010)
  269.             ,helpstring("property ForegroundSuppressWireFrame2D")
  270.         ]
  271.         HRESULT  ForegroundSuppressWireFrame2D(
  272.             [in] BOOL bVal
  273.             );
  274. //
  275.         [
  276.              propget
  277.             ,helpcontext(0x13000010)
  278.             ,helpstring("property ForegroundSuppressWireFrame3D")
  279.         ]
  280.         HRESULT  ForegroundSuppressWireFrame3D(
  281.             [out, retval] BOOL *bVal
  282.             );
  283.         
  284.         [
  285.              propput
  286.             ,helpcontext(0x13000010)
  287.             ,helpstring("property ForegroundSuppressWireFrame3D")
  288.         ]
  289.         HRESULT  ForegroundSuppressWireFrame3D(
  290.             [in] BOOL bVal
  291.             );
  292.  
  293.     }
  294.     
  295.     /**
  296.      * An object which controls the loading and saving of objects to and from disk.
  297.      */
  298.     [
  299.          object
  300.         ,uuid(6A48114F-E531-11CF-A115-00A024158DAF)
  301.         ,dual
  302.         ,helpcontext(0x13010000)
  303.         ,helpstring("An object which controls the rendering.")
  304.     ]
  305.     interface Render : IDispatch
  306.     {
  307.  
  308.         ///////////////////////////// Properties \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  309.  
  310.         /**
  311.          * Returns an Application object that represents the owner of the specified object.
  312.          */
  313.         [
  314.              propget
  315.             ,helpcontext(0x13010001)
  316.             ,helpstring("Returns an Application object that represents the creator of the specified object.")
  317.         ]
  318.         HRESULT  Application(
  319.             [out, retval] IApplication** prop // The Application object.
  320.             );
  321.  
  322.         /**
  323.          * Returns the name of the object, as a string.
  324.          */
  325.         [
  326.              propget
  327.             ,helpcontext(0x13010002)
  328.             ,helpstring("Returns the name of the object, as a string.")
  329.         ]
  330.         HRESULT  Name(
  331.             [out, retval] BSTR* prop // The name of the object.
  332.             );
  333.  
  334.         /**
  335.          * Returns the parent object for the specified object.
  336.          */
  337.         [
  338.              propget
  339.             ,helpcontext(0x13010003)
  340.             ,helpstring("Returns the parent object for the specified object.")
  341.         ]
  342.         HRESULT  Parent(
  343.             [out, retval] IDispatch** prop // The parent object.
  344.             );
  345.  
  346.         /**
  347.          * Returns the internal table entry ID.
  348.          * Private.
  349.          */
  350.         [
  351.              propget
  352.             ,restricted
  353.             ,helpcontext(0x13010004)
  354.             ,helpstring("Private.  Returns the internal table entry ID.")
  355.         ]
  356.         HRESULT  _TableEntryID(
  357.             [out, retval] long* prop // The table entry ID.
  358.             );
  359.  
  360.         [
  361.              propget
  362.             ,helpcontext(0x13010005)
  363.             ,helpstring("Returns the type of the object, as a string")
  364.         ]
  365.         HRESULT Type(
  366.             [out, retval] BSTR *pVal
  367.             );
  368.         
  369.         [
  370.              propget
  371.             ,helpcontext(0x13010006)
  372.             ,helpstring("return list of modes supported by this Render object as array of string")
  373.         ]
  374.         HRESULT Modes(
  375.             [out, retval] VARIANT *pVal
  376.             );
  377.  
  378.         [
  379.              propget
  380.             ,helpcontext(0x13010007)
  381.             ,helpstring("return render's default mode")
  382.         ]
  383.         HRESULT DefaultMode(
  384.             [out, retval] ImsiRenderMode *pVal
  385.             );
  386.         
  387.         [
  388.              propput
  389.             ,helpcontext(0x13010007)
  390.             ,helpstring("set render's default mode")
  391.         ]
  392.         HRESULT DefaultMode(
  393.             [in] ImsiRenderMode newVal
  394.             );
  395.         
  396.         [
  397.              propget
  398.             ,helpcontext(0x13010008)
  399.             ,helpstring("return ExtendedModes list for the render")
  400.         ]
  401.         HRESULT  RadExtendedModes(
  402.             [out, retval] VARIANT *pVal
  403.             );
  404.  
  405.         [
  406.              propget
  407.             ,helpcontext(0x13010009)
  408.             ,helpstring("return ExtendedMode of the render")
  409.         ]
  410.         HRESULT RadExtendedMode(
  411.             [out, retval] ImsiRenderMode *pVal
  412.             );
  413.  
  414.         [
  415.              propput
  416.             ,helpcontext(0x13010009)
  417.             ,helpstring("set ExtendedMode of the render")
  418.         ]
  419.         HRESULT RadExtendedMode(
  420.             [in] ImsiRenderMode newVal
  421.             );
  422.  
  423.         [
  424.              propget
  425.             ,helpcontext(0x1301000A)
  426.             ,helpstring("property IterationsCount")
  427.         ]
  428.         HRESULT RadIterationsCount(
  429.             [out, retval] short *pVal
  430.             );
  431.  
  432.         [
  433.              propput
  434.             ,helpcontext(0x1301000A)
  435.             ,helpstring("property IterationsCount")
  436.         ]
  437.         HRESULT RadIterationsCount(
  438.             [in] short newVal
  439.             );
  440.  
  441.         /////////////////////////////// Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  442.  
  443.         /**
  444.          * Deletes the object.
  445.          */
  446.         [
  447.              helpcontext(0x1301000B)
  448.             ,helpstring("Deletes the object.")
  449.         ]
  450.         HRESULT  Delete(
  451.             );
  452.  
  453.         [
  454.              helpcontext(0x1301000C)
  455.             ,helpstring("Run the render in target view")
  456.         ]
  457.         HRESULT  Run(
  458.             [in] View* pView, 
  459.             [out, retval] IPicture** pPicture
  460.             );
  461.  
  462.         [
  463.              propget
  464.             ,helpcontext(0x1301000D)
  465.             ,helpstring("Return count of render modes supported by the render")
  466.         ]
  467.         HRESULT  RenderModesCount(
  468.             [out, retval] short *pVal
  469.             );
  470.         
  471.         [
  472.              propget
  473.             ,helpcontext(0x1301000E)
  474.             ,helpstring("Return count of extended render modes supported by the render")
  475.         ]
  476.         HRESULT  RadExtendedRenderModesCount(
  477.             [out, retval] short *pVal
  478.             );
  479.         
  480.         [
  481.              propget
  482.             ,helpcontext(0x1301000F)
  483.             ,helpstring("property MaxArea")
  484.         ]
  485.         HRESULT  RadMaxArea(
  486.             [out, retval] double *pVal
  487.             );
  488.         
  489.         [
  490.              propput
  491.             ,helpcontext(0x1301000F)
  492.             ,helpstring("property MaxArea")
  493.         ]
  494.         HRESULT  RadMaxArea(
  495.             [in] double newVal
  496.             );
  497.         
  498.         [
  499.              propget
  500.             ,helpcontext(0x13010010)
  501.             ,helpstring("property MinArea")
  502.         ]
  503.         HRESULT  RadMinArea(
  504.             [out, retval] double *pVal
  505.             );
  506.  
  507.         [
  508.              propput
  509.             ,helpcontext(0x13010010)
  510.             ,helpstring("property MinArea")
  511.         ]
  512.         HRESULT  RadMinArea(
  513.             [in] double newVal
  514.             );
  515.  
  516.         [
  517.              propget
  518.             ,helpcontext(0x13010011)
  519.             ,helpstring("property RadQuality")
  520.         ]
  521.         HRESULT  RadQuality(
  522.             [out, retval] short *pVal
  523.             );
  524.  
  525.         [
  526.              propput
  527.             ,helpcontext(0x13010011)
  528.             ,helpstring("property RadQuality")
  529.         ]
  530.         HRESULT  RadQuality(
  531.             [in] short newVal
  532.             );
  533.  
  534.     };
  535.  
  536.     /**
  537.      * The collection of objects that control loading from and saving to storage.
  538.      */
  539.     [
  540.          object
  541.         ,uuid(6A481150-E531-11CF-A115-00A024158DAF)
  542.         ,dual
  543.         ,helpcontext(0x13020000)
  544.         ,helpstring("The collection of objects that control rendering.")
  545.     ]
  546.     interface Renders : IDispatch
  547.     {
  548.  
  549.         ///////////////////////////// Properties \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  550.  
  551.         /**
  552.          * Returns an Application object that represents the owner of the specified object.
  553.          */
  554.         [
  555.              propget
  556.             ,helpcontext(0x13020001)
  557.             ,helpstring("Returns an Application object that represents the creator of the specified object.")
  558.         ]
  559.         HRESULT  Application(
  560.             [out, retval] IApplication** prop // The Application object.
  561.             );
  562.  
  563.         /**
  564.          * Returns the number of items in the collection.
  565.          */
  566.         [
  567.              propget
  568.             ,helpcontext(0x13020002)
  569.             ,helpstring("Returns the number of items in the collection.")
  570.         ]
  571.         HRESULT  Count(
  572.             [out, retval] long* prop // The number of items.
  573.             );
  574.  
  575.         /**
  576.          * Returns part of a collection.
  577.          */
  578.         [
  579.              propget
  580.             ,id(DISPID_VALUE)
  581.             ,helpcontext(0x13020003)
  582.             ,helpstring("Returns part of a collection.")
  583.         ]
  584.         HRESULT  Item(
  585.             [in] VARIANT* Index, // Index of item to return.
  586.             [out, retval] Render** prop // The item.
  587.             );
  588.  
  589.         /**
  590.          * Returns the parent object for the specified object.
  591.          */
  592.         [
  593.              propget
  594.             ,helpcontext(0x13020004)
  595.             ,helpstring("Returns the parent object for the specified object.")
  596.         ]
  597.         HRESULT  Parent(
  598.             [out, retval] IDispatch** prop // The parent object.
  599.             );
  600.  
  601.         /**
  602.          * Creates an enumeration object.
  603.          */
  604.         [
  605.              propget
  606.             ,restricted
  607.             ,id(DISPID_NEWENUM)
  608.             ,helpcontext(0x13020005)
  609.             ,helpstring("Private.  Creates an enumeration object.")
  610.         ]
  611.         HRESULT  _NewEnum(
  612.             [out, retval] IUnknown** prop // The enumeration object.
  613.             );
  614.  
  615.         /////////////////////////////// Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  616.  
  617.         /**
  618.          * Add all the Render objects in the specified file to the collection.
  619.          */
  620.  
  621.         [
  622.              helpcontext(0x13020006)
  623.             ,helpstring("Add all the Render objects in the specified file to the collection.")
  624.             ,hidden, restricted
  625.         ]
  626.         HRESULT  Add(
  627.             [in] BSTR FileName, // The full path name of the file containing Filter objects.
  628.             [in, out, optional] VARIANT* RendersAdded // An array of Filter objects.
  629.             );
  630.  
  631.         /**
  632.          * Returns the index within the table collection of the specified table entry.
  633.          * Private.
  634.          */
  635.         [
  636.              restricted
  637.             ,helpcontext(0x13020007)
  638.             ,helpstring("Private.  Returns the index within the table collection of the specified table entry.")
  639.         ]
  640.         HRESULT  _FindIndex(
  641.             [in] long TableEntryID, // The internal table ID.
  642.             [out, retval] long* prop // The zero based index.
  643.             );
  644.  
  645.         /**
  646.          * Returns an object from the table collection for the specified table entry.
  647.          * Private.
  648.          */
  649.         [
  650.              restricted
  651.             ,helpcontext(0x13020008)
  652.             ,helpstring("Private.  Returns an object from the table collection for the specified table entry.")
  653.         ]
  654.         HRESULT  _ObjectFromID(
  655.             [in] long TableEntryID, // The internal table ID.
  656.             [out, retval] Render** prop // The object.
  657.             );
  658.  
  659.         [
  660.              propget
  661.             ,helpcontext(0x13000011)
  662.             ,helpstring("True if render views are sutomatically updated when drawing has been changed.")
  663.         ]
  664.         HRESULT  AutoUpdate(
  665.             [in, optional]    VARIANT* pIDispDwg,
  666.             [out, retval]    IMSI_BOOL *pVal
  667.             );
  668.         
  669.         [
  670.              propput
  671.             ,helpcontext(0x13000011)
  672.             ,helpstring("True if render views are sutomatically updated when drawing has been changed.")
  673.         ]
  674.         HRESULT  AutoUpdate(
  675.             [in, optional] VARIANT*    pIDispDwg,
  676.             [in] IMSI_BOOL    newVal
  677.             );
  678.     };
  679.  
  680.  
  681. [        
  682.      uuid(6A481406-E531-11CF-A115-00A024158DAF)
  683.     ,version(8.0)
  684.     ,helpfile("tcsdk.chm")
  685.     ,helpcontext(0x13030000)
  686.     ,helpstring("GXRenders 8.0 Type Library")
  687. ]
  688. library GXRendersLib
  689. {
  690.     importlib("stdole32.tlb");
  691.     importlib("stdole2.tlb");
  692.     importlib("..\include\imsigx.tlb");
  693.  
  694.     [
  695.          uuid(6A48180D-E531-11CF-A115-00A024158DAF)
  696.         ,hidden
  697.         ,helpcontext(0x13030000)
  698.         ,helpstring("A Renders collection.")
  699.     ]
  700.     coclass XRenders
  701.     {
  702.         [default] interface Renders;
  703.     }
  704.  
  705.     [
  706.          uuid(6A48180E-E531-11CF-A115-00A024158DAF)
  707.         ,hidden
  708.         ,helpcontext(0x13040000)
  709.         ,helpstring("A RenderView .")
  710.     ]
  711.     coclass XRenderView
  712.     {
  713.         [default] interface RenderView;
  714.     }
  715.  
  716.  
  717. };
  718.